import { COMMANDS } from '../../commands'

export default function (keybindings, language) {
  return {
    label: language.getString('edit'),
    submenu: [{
      label: language.getString('cut'),
      accelerator: keybindings.getAccelerator(COMMANDS.EDIT_CUT),
      role: 'cut'
    }, {
      label: language.getString('copy'),
      accelerator: keybindings.getAccelerator(COMMANDS.EDIT_COPY),
      role: 'copy'
    }, {
      label: language.getString('paste'),
      accelerator: keybindings.getAccelerator(COMMANDS.EDIT_PASTE),
      role: 'paste'
    }, {
      type: 'separator'
    }, {
      label: language.getString('selectAll'),
      accelerator: keybindings.getAccelerator(COMMANDS.EDIT_SELECT_ALL),
      role: 'selectAll'
    }]
  }
}
